$(document).ready(function () {
    $("#rqs_lista").on('init.dt, draw.dt', function () {
        $("#rqs_lista_filter input").attr('placeholder', 'Buscar requerimento');
        $(".tooltip").each(function () {
            rqrStatus = $(this).children('.status').html();
            $(this).attr('title', rqrStatus).tooltipster({theme: 'tooltipster-punk'});
        });
    }).dataTable({
        order: [0, 'desc'],
        language: {
            processing: "Processando...",
            search: "",
            lengthMenu: "Mostrando _MENU_ requerimentos.",
            info: "Mostrando de _START_ a _END_ de _TOTAL_ requerimentos.",
            infoEmpty: "Nenhum requerimento encontrado",
            infoFiltered: "(filtrando de _MAX_ requerimentos no total)",
            infoPostFix: "",
            loadingRecords: "Carregando...",
            zeroRecords: "Nenhum requerimento encontrado",
            emptyTable: "Nada a exibir",
            paginate: {
                first: "Primeira",
                previous: "Anterior",
                next: "Pr&oacute;xima",
                last: "&Uacute;ltima"
            }
        }
    });
});